package bean;


/**
 * @author xuxin
 */
public class People {

    private int no;
    private String name;
    /**
     * next指向该节点的下一个节点
     */
    private People next;
    /**
     * pre指向该节点的上一个节点
     */
    private People pre;

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public People getNext() {
        return next;
    }

    public void setNext(People next) {
        this.next = next;
    }

    public People getPre() {
        return pre;
    }

    public void setPre(People pre) {
        this.pre = pre;
    }

    public People(int no, String name) {
        this.no = no;
        this.name = name;
    }

    @Override
    public String toString() {
        return "People{" +
                "no=" + no +
                ", name='" + name + '\'' +
                '}';
    }
}